<?php
/**
 * Created by PhpStorm.
 * User: 49166
 * Date: 2018/5/17
 * Time: 14:33
 */

namespace app\index\widget;


use app\index\model\ShopCart;
use think\Controller;

class goods
{
    public  function  topHeader(){
        $shopCart =ShopCart::where(['order_id'=>null,
                            'user_id'=>session('uid')])
                            ->limit(4)
                            ->select();
        return $shopCart;


    }
}